package com.ruoyi.mall.product.service;

import com.ruoyi.mall.product.domain.entity.PmsBrand;
import com.ruoyi.mall.product.domain.repository.PmsBrandMapper;
import com.ruoyi.mall.product.domain.service.IPmsBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: zqs-mall
 * @description:
 * @author: Mr.Zhang
 * @create: 2022-05-30 16:46
 **/
@Service
public class PmsBrandAppService {
    @Autowired
    private IPmsBrandService pmsBrandService;

    /**
     * 查询品牌
     *
     * @param id 品牌主键
     * @return 品牌
     */
    public PmsBrand selectPmsBrandById(Long id) {
        return pmsBrandService.selectPmsBrandById(id);
    }

    /**
     * 查询品牌列表
     *
     * @param pmsBrand 品牌
     * @return 品牌
     */
    public List<PmsBrand> selectPmsBrandList(PmsBrand pmsBrand) {
        return pmsBrandService.selectPmsBrandList(pmsBrand);
    }

    /**
     * 新增品牌
     *
     * @param pmsBrand 品牌
     * @return 结果
     */
    public int insertPmsBrand(PmsBrand pmsBrand) {
        return pmsBrandService.insertPmsBrand(pmsBrand);
    }

    /**
     * 修改品牌
     *
     * @param pmsBrand 品牌
     * @return 结果
     */
    public int updatePmsBrand(PmsBrand pmsBrand) {
        return pmsBrandService.updatePmsBrand(pmsBrand);
    }

    /**
     * 批量删除品牌
     *
     * @param ids 需要删除的品牌主键
     * @return 结果
     */
    public int deletePmsBrandByIds(Long[] ids) {
        return pmsBrandService.deletePmsBrandByIds(ids);
    }

    /**
     * 删除品牌信息
     *
     * @param id 品牌主键
     * @return 结果
     */
    public int deletePmsBrandById(Long id) {
        return pmsBrandService.deletePmsBrandById(id);
    }

    /**
     * 修改状态
     *
     * @param pmsBrand
     * @return
     */
    public int updatePmsBrandStatus(PmsBrand pmsBrand) {
        return pmsBrandService.updatePmsBrandStatus(pmsBrand);
    }
}
